package com.xmotor.test_Autowired_List;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description
 * @Author Dang Xianyue
 * @Date 2020-09-21 10:50
 * @Version 1.0
 */
@Configuration
public class TestConfigClass {

    @Bean
    public Object test(List<TestInterFace> list){
        for (TestInterFace testInterFace : list) {
            System.out.println(testInterFace.say());
        }
        return list;
    }
}
